package org.example.study.sc.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: rabbitmq-study
 * @description:
 * @Version V1.0.0
 * @author: dazhi
 * @create: 2021-02-01 11:02
 **/
@Getter
@Setter
@TableName("goods_sec_kill")
public class GoodsSecKill {
    private static final long serialVersionUID = -4304048517974200752L;
    /**
     * 秒杀id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId
    private Long goodsId;


    private String goodsName;
    /**
     * 秒杀价格
     */
    private BigDecimal secKillPrice;
    /**
     * 秒杀开始时间
     */
    private Date startTime;
    /**
     * 秒杀结束时间
     */
    private Date endTime;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
}
